home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmigaPlus
/
Tools
/
mOS_Pegasos
/
Trailermaker
< prev
next >
Wrap
Text File
|
2004-05-11
|
5KB
|
185 lines
/* Testoberfläche*/
IF ~SHOW('LIBRARIES','tritonrexx.library') THEN DO
IF ~ADDLIB('tritonrexx.library',10,-30,0) THEN DO
SAY 'Kann die <tritonrexx.library> nicht öffnen!'
EXIT(10)
END
END
IF ~SHOW('LIBRARIES','rexxtricks.library') THEN DO
IF ~ADDLIB('rexxtricks.library',10,-30,0) THEN DO
SAY 'Kann die <rexxtricks.library> nicht öffnen!'
EXIT(10)
END
END
projektladen = Loadfile("DIVX-5 File",ok,"Ram:","DVD.avi")
id=0
lan.0 = 4
lan.1 = 'german'
lan.2 = 'english'
lan.3 = 'french'
lan.4 = 'turky'
as.0=2
as.1='4:3'
as.2='16:9'
an.0=4
an.1=1
an.2=2
an.3=3
an.4=4
call ReadFile("envarc:DVD-device",device)
call ReadFile("envarc:DVD-unit",unit)
windowtags = WindowID(1),
WindowTitle('DVD-Decoder'),
QuickHelpOn(0),
vertgroupa,
Horizgroupa,
vertgroupa,
centeredtext(''),
Button('Decode',104),
endgroup,
space,
vertgroupa,
centeredText('Titel'),
StringGadget('1',103),
endgroup,
space,
vertgroupa,
centeredText('Chapter'),
StringGadget('1',105),
endgroup,
endgroup,
space,
horizgroupc,
vertgroupa,
centeredText(' Trailerfile '),
StringGadget('Ram:DVD.avi',107),
endgroup,
vertgroupa,
Textn(''),
Getfilebutton(106),
endgroup,
spaceb,
vertgroupa,
centeredText('max. Decoding-Time'),
Stringgadget('00:00:10',108),
endgroup,
space,
vertgroupa,
centeredText('Frame-Size'),
Stringgadget('640x480',109),
endgroup,
space,
vertgroupa,
centeredText('Frame-Quality'),
Stringgadget('8',110),
endgroup,
endgroup,
space,
horizgroupa,
vertgroupa,
centeredText('Audio-Language'),
CycleGadget(Lan,0,111),
endgroup,
space,
vertgroupa,
centeredText('DVD-Angle'),
CycleGadget(an,0,113),
endgroup,
space,
vertgroupa,
centeredText('Frame-Aspect'),
CycleGadget(as,0,112),
endgroup,
endgroup,
endgroup
app = TR_CREATEAPP('TRCA_Name Dia-CD')
IF app ~= '00000000'x THEN DO
window = TR_OPENPROJECT(app,windowtags)
IF window ~= '00000000'x THEN DO
ende = 0
DO WHILE ende ~= 1
CALL TR_WAIT(app,'')
DO WHILE TR_HANDLEMSG(app,'event')
IF event.trm_class = 'TRMS_ACTION' THEN DO
SELECT
WHEN event.trm_id = 13 THEN
ende = 1
WHEN event.trm_id = 2 THEN
nop
OTHERWISE
NOP
END
if event.trm_id = 104 then do
titel=TR_GetAttribute(window,103,'Trob_String')
chapter=TR_GetAttribute(window,105,'Trob_String')
Outputfile='"'||TR_GetAttribute(window,107,'Trob_String')||'"'
decodingtime=TR_GetAttribute(window,108,'Trob_String')
framesize=TR_GetAttribute(window,109,'Trob_String')
framequality=TR_GetAttribute(window,110,'Trob_String')
lang=TR_GetAttribute(window,111,'Trat_Value')
asp=TR_GetAttribute(window,112,'Trat_Value')
ann=TR_GetAttribute(window,113,'Trat_Value')+1
if lang=0 then do
ll=' -alang de '
end
if lang=1 then do
ll=' -alang en '
end
if lang=2 then do
ll=' -alang fr '
end
if lang=3 then do
ll=' -alang tr '
end
if asp=0 then do
aas='4:3'
end
if asp=1 then do
aas='16:9'
end
decode='MOSSYS:c/mencoder -dvd '||titel||' -dvd-device '||device.1||':'||unit.1||' -dvdangle '||ann||' -chapter '||chapter||ll||' -vop scale='||framesize||' -endpos '||decodingtime||' -o '||Outputfile||' -ovc lavc -lavcopts vcodec=mpeg4:vqscale='||framequality||' -oac mp3lame vbr=0:q=5:aq=0:ratio=5:vol=0 -aspect '||aas
address command decode
end
if event.trm_id = 106 then do
call ASL_RequestFile(window,divx,projektladen)
call TR_SetAttribute(window,107,'Trob_String',divx.1)
end
END
IF event.trm_class = 'TRMS_CLOSEWINDOW' THEN
ende = 1
END
END
CALL TR_CLOSEPROJECT(window)
END
CALL TR_DELETEAPP(app)
END
EXIT(0)